Skip to content

ci: Disable uv cache to fix dependency-glob annotation#104

Merged
philippemnoel merged 1 commit into
mainfrom
fix/setup-uv-cache-annotation
Jun 9, 2026
Merged

ci: Disable uv cache to fix dependency-glob annotation#104
philippemnoel merged 1 commit into
mainfrom
fix/setup-uv-cache-annotation

Conversation

@philippemnoel

Copy link
Copy Markdown
Member

Problem

CI surfaces a warning annotation:

No file matched to [...requirements.txt, ...pyproject.toml, ...uv.lock, ...]. The cache will never get invalidated. Make sure you have checked out the target repository and configured the cache-dependency-glob input correctly.

This comes from astral-sh/setup-uv@v7 with enable-cache: true. The cache is keyed off Python dependency files (requirements/pyproject/uv.lock), but this repo has noneuv is only used for ephemeral uv run --with json5 and uv tool run invocations. So the cache can never be invalidated and provides no benefit.

Fix

Remove enable-cache: true (defaults to false) from the workflows that set up uv. This drops the useless cache and clears the annotation.

🤖 Generated with Claude Code

The astral-sh/setup-uv action with enable-cache: true keys its cache off
Python dependency files (requirements.txt, pyproject.toml, uv.lock, etc.).
This repo has none — uv is only used for ephemeral 'uv run --with' and
'uv tool run' invocations — so the cache could never be invalidated,
producing the warning:

  No file matched to [...*requirements*.txt,...pyproject.toml,...uv.lock].
  The cache will never get invalidated.

Removing enable-cache (default false) drops the useless cache and the
annotation.
@philippemnoel philippemnoel merged commit 63de307 into main Jun 9, 2026
16 checks passed
@philippemnoel philippemnoel deleted the fix/setup-uv-cache-annotation branch June 9, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant